Learn R Programming

bnlearn (version 4.7.1)

igraph integration: Import and export networks from the igraph package

Description

Convert bn and bn.fit objects to igraph and vice versa.

Usage

# S3 method for igraph
as.bn(x, ..., check.cycles = TRUE)
# S3 method for bn
as.igraph(x, ...)
# S3 method for bn.fit
as.igraph(x, ...)

Value

An object of the relevant class.

Arguments

x

an object of class bn, bn.fit, or igraph.

...

extra arguments from the generic method (currently ignored).

check.cycles

a boolean value. If FALSE the returned network will not be checked for cycles.

Author

Marco Scutari